import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SPoint } from "./SPoint";
type int = number;
//class SCopyPassInto
    
    export  class SCopyPassInto extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCopyPassInto();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.copyCode);
            arg1.writeInt(this.mapId);
            this.point.__write(arg1);
            arg1.writeBool(this.isPractice);
            arg1.writeBool(this.isHero);
            arg1.writeBool(this.isCreateCopy);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.copyCode = arg1.readInt();
            this.mapId = arg1.readInt();
            this.point = new SPoint();
            this.point.__read(arg1);
            this.isPractice = arg1.readBool();
            this.isHero = arg1.readBool();
            this.isCreateCopy = arg1.readBool();
            return;
        }

        public /* const */_type: int=20424;

        public /* var */copyCode: int;

        public /* var */mapId: int;

        public /* var */point: SPoint;

        public /* var */isPractice: Boolean;

        public /* var */isHero: Boolean;

        public /* var */isCreateCopy: Boolean;

        public static /* var */_regist: SCopyPassInto;
    }

            SCopyPassInto._regist = new SCopyPassInto(true);
        